goalPos added to constructor