added to  functions
added keyboard controls and collisios