Added contraint to ball movement