added classes.lua and updated player.lua