fixed bugs and works without gamepad for player 1