Added rules for movement and updated gameloop