added available action function to player object but having trouble communicating between locations and game.js