things that make you lose your cool

When I played super well and am winning a game, but lose concentration for one second and make a stupid mistake, losing me the game.. But hey, I'm a beginner, so I learn to do that less ..

What makes me lose my cool is when I start calculating a line the begins with taking my opponent's bishop with my bishop, see it's the solution after several moves, then take the bishop with my knight by mistake.