re-wrote to add animation to player character. removed key pressed logic for now
edited slightly.