fix the sliding logic and implement adding new pieces and game over checks