Added input and direction control to player