public void handleMove(int x, int y)
        {
            //Get where karel wants to move
            int newX = x + player.GetX();
            int newY = y + player.GetY();
            
            if (player.isWallCollision(newX, newY, walls))
            {
                //collided with wall - do not move karel
            }
            else if (player.isHomeCollision(newX,newY,home))
            {
                //if karel is home and all gems are taken, move and end game
                if(gems.isEmpty())
                {
                    player.move(x,y);
                    isRunning = false;
                    System.out.println("You have won!");
                }
            }
            else if (player.isGemCollision(newX, newY, gems) != -1)
            {
                //pick up the gem and move karel
                gems.remove(player.isGemCollision(newX, newY, gems));
                player.move(x, y);
            }
            else
            {
                //move karel
                player.move(x, y);
            }
        }