Hot fix for resizing ball near the wall (now it include walls positions).