public void collisionWall() {
		if(snake.isSnakeUp()) {
			if(snake.getSnakeY()<20) {
				finishGame();
			}else{
				snake.setSnakeY(snake.getSnakeY() - 15);
			}

		}else if(snake.isSnakeDown()) {
			if(snake.getSnakeY()>335) {
				finishGame();
			}else {
				snake.setSnakeY(snake.getSnakeY() + 15);
			}
		}else if(snake.isSnakeLeft()) {
			if(snake.getSnakeX()<20) {
				finishGame();
			}else {
				snake.setSnakeX(snake.getSnakeX() - 15);
			}
		}else if(snake.isSnakeRight()) {
			if(snake.getSnakeX()>370) {
				finishGame();
			}else {
				snake.setSnakeX(snake.getSnakeX() + 15);
			}
		}
	}