Added/altered some functions

Made the player function use an index based system instead of accepting items as arguments, making it easier to use with doInput().
Commented out old versions of functions and direction enumerator.