implemented 'physics' and player controls