Made some code for ingame