private void setNewPiece()
	{
		currentPiece=getRandomPiece();
		
		int row=0;
		int col=2;
		int[][] pieceArray=currentPiece.getPiece();
		
		//sets corner so piece at the top
		boolean breakk=false;
		for (int i=0;i<pieceArray.length;i++)
		{
			for (int j=0;j<pieceArray[i].length;j++)
			{
				if (pieceArray[i][j]==1)
				{
					row-=i;
					//System.out.println(i+" "+j);
					breakk=true;
					break;
				}
			}
			if (breakk)
			{
				break;
			}
		}
		
		pieceCorner=new Point(row,col);
		//System.out.println(pieceCorner);
		//currentPiece.printPiece();
		
		isAlive=board.canFit(currentPiece.getPiece(), pieceCorner);
	}