@Override
	public ArrayList<position> getAttacks() {
		// TODO Auto-generated method stub
		ArrayList<position> possibleAttacks=new ArrayList<position>();
		PieceInterface[][] board=game.getBoard();
		position move;

		//If the pawn ever reaches the end of the board, it should promote.  Therefore incrementing or decrementing the pawn should never be greater than 7 or less than zero.
		if(pos.y<=0 || pos.y>=7)
		{
			throw new InvalidParameterException();
		}
		if(pos.x+1<=7)
		{
			move = new position();
			move.x=pos.x+1;
			move.y=pos.y+player.moveUp();
			if(canAttack(move, board) || enPassant(move))
			{
				possibleAttacks.add(move);
			}
		}
		if(pos.x-1>=0)
		{
			move = new position();
			move.x=pos.x-1;
			move.y=pos.y+player.moveUp();
			if(canAttack(move, board) || enPassant(move))
			{
				possibleAttacks.add(move);
			}
		}
		return possibleAttacks;
	}