Fixed indentation and player not flipping bug