public void checkCurrentGameInputs(KeyEvent e) {

		if(e.getKeyCode()==38) {
			if(snake.isSnakeDown()==false) {
				snake.setSnakeDown(false);
				snake.setSnakeRight(false);
				snake.setSnakeLeft(false);
				snake.setSnakeUp(true);
			}

		} else if(e.getKeyCode() == 40) {
			if(snake.isSnakeUp() == false) {
				snake.setSnakeUp(false);
				snake.setSnakeRight(false);
				snake.setSnakeLeft(false);
				snake.setSnakeDown(true);
			}

		} else if(e.getKeyCode() == 37) {
			if(snake.isSnakeRight()==false) {
				snake.setSnakeUp(false);
				snake.setSnakeRight(false);
				snake.setSnakeDown(false);
				snake.setSnakeLeft(true);
			}
		} else if(e.getKeyCode() == 39) {
			if(snake.isSnakeLeft()==false) {
				snake.setSnakeUp(false);
				snake.setSnakeLeft(false);
				snake.setSnakeDown(false);
				snake.setSnakeRight(true);
			}

		} else if(e.getKeyCode() == 27) {
			snakeGame.setPause(true);	
		}
	}