fixed formatting issues from import
added code for player