Work on playerfunctions and more definitions for map