Added screen borders and gravity