The bolt moves back so the cartridge can be loaded.

It blocks the back of the chamber when the gun is fired.

It moves forward to unload the cartridge.