public Board(Vector2f pos, Vector2f size){ //shape = new Rectangle(pos.x, pos.y, size.x, size.y); shape = new Path(pos.x, pos.y); shape.lineTo(pos.x, pos.y + size.y); shape.lineTo(pos.x + size.x, pos.y + size.y); shape.lineTo(pos.x + size.x, pos.y); shape.lineTo(pos.x, pos.y); }