added player class and improved map drawing